package com.java.zjx.advice;

import java.lang.reflect.Method;
import java.util.Calendar;

import org.springframework.aop.AfterReturningAdvice;

import com.java.zjx.service.interf.ILogService;

public class LogAfterReturningAdvice implements AfterReturningAdvice {
	
	private ILogService logService;
	
	public void afterReturning(Object arg0, Method arg1, Object[] arg2,
			Object arg3) throws Throwable {
		
		System.out.println("advice.........");
		System.out.println("arg0:"+arg0.getClass().getName());
		System.out.println("arg1:"+arg1.getName());
		System.out.println("arg2:" + arg2.toString());
		System.out.println("arg3:"+arg3.toString());
		System.out.println("end~~~~~~~~~");

	}

	public void setLogService(ILogService logService) {
		this.logService = logService;
	}

}
